#pragma once

#include <string>

namespace renderit
{
	namespace messiah
	{
		class loader_tga
		{
		public:
			loader_tga(const char * dirpath);

		public:
			~loader_tga();

		public:
			bool load();
			bool save();

			int width() const;
			int height() const;
			
			char* color_array();

		private:
			struct TgaColor
			{
				char r, g, b, a;
			};

			TgaColor * color_;
			int width_;
			int height_;

			std::string dirpath_;
		};
	}
}